/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.login.plugin.accountBind.view;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.qihoo.gamecenter.sdk.common.view.CustButton;
import com.qihoo.gamecenter.sdk.login.plugin.d;
import com.qihoo.gamecenter.sdk.login.plugin.d.a;
import com.qihoo.gamecenter.sdk.login.plugin.h.c;
import com.qihoo.gamecenter.sdk.login.plugin.h.f;

public class VerifyPhoneNumberDialogLandscape extends VerifyPhoneNumberDialog {
    public VerifyPhoneNumberDialogLandscape(Activity paramActivity, String paramString, Intent paramIntent, b paramb) {
        super(paramActivity, paramString, paramIntent, paramb);
    }

    protected LinearLayout b(Context paramContext) {
        LinearLayout localLinearLayout = new LinearLayout(this.b);
        LinearLayout.LayoutParams localLayoutParams = new LinearLayout.LayoutParams(-1, 1);
        localLayoutParams.bottomMargin = f.a(paramContext, 18.0F);
        localLinearLayout.setOrientation(1);
        TextView localTextView = new TextView(this.b);
        localTextView.setBackgroundColor(-16777216);
        this.k = new TextView(paramContext);
        RelativeLayout.LayoutParams localLayoutParams1 = new RelativeLayout.LayoutParams(-1, -2);
        localLayoutParams1.bottomMargin = f.a(paramContext, 18.0F);
        localLayoutParams1.addRule(3, a.c.ordinal());
        localLinearLayout.setLayoutParams(localLayoutParams1);
        localLinearLayout.setId(a.d.ordinal());
        localLinearLayout.addView(this.k, new RelativeLayout.LayoutParams(-1, -2));
        this.k.setGravity(16);
        String str = this.d.getStringExtra("bind_message");
        this.k.setTextSize(1, c.l);
        if (TextUtils.isEmpty(str))
            this.k.setText(d.a(d.a.bg));
        else
            this.k.setText(str);
        this.k.setTextColor(-16777216);
        return localLinearLayout;
    }

    protected void a(Context paramContext) {
        RelativeLayout.LayoutParams localLayoutParams = new RelativeLayout.LayoutParams(-1, -2);
        localLayoutParams.addRule(3, a.e.ordinal());
        localLayoutParams.setMargins(0, f.a(paramContext, 4.0F), 0, f.a(paramContext, 4.0F));
        LinearLayout localLinearLayout = new LinearLayout(paramContext);
        localLinearLayout.setLayoutParams(localLayoutParams);
        localLinearLayout.setOrientation(0);
        localLinearLayout.setId(a.g.ordinal());
        localLinearLayout.addView(f(paramContext));
        localLinearLayout.addView(d(paramContext));
        this.e.addView(localLinearLayout);
        this.e.addView(e(paramContext));
    }

    protected LinearLayout d(Context paramContext) {
        LinearLayout localLinearLayout = new LinearLayout(paramContext);
        localLinearLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, f.a(this.b, 47.0F), 1.0F));
        localLinearLayout.setGravity(17);
        this.h = new CustButton(paramContext);
        this.h.setLayoutParams(new LinearLayout.LayoutParams(-1, f.a(this.b, 47.0F)));
        this.h.setGravity(17);
        this.h.setPadding(f.a(this.b, 20.0F), 0, f.a(this.b, 20.0F), 0);
        this.h.setTextColor(-1);
        this.h.setTextSize(1, c.l);
        this.h.setText(d.a(d.a.bi));
        this.h.a();
        this.h.b();
        this.h.setOnClickListener(this.p);
        this.a.a(this.h, -1073741764, -1073741763, -1073741763);
        localLinearLayout.addView(this.h);
        return localLinearLayout;
    }

    protected LinearLayout e(Context paramContext) {
        int i = f.a(paramContext, 8.0F) * 2;
        RelativeLayout.LayoutParams localLayoutParams = new RelativeLayout.LayoutParams(-2, -2);
        localLayoutParams.addRule(3, a.g.ordinal());
        localLayoutParams.topMargin = f.a(paramContext, 2.0F);
        localLayoutParams.leftMargin = i;
        localLayoutParams.rightMargin = i;
        localLayoutParams.addRule(11);
        localLayoutParams.addRule(12);
        this.i = new LinearLayout(paramContext);
        this.i.setPadding(0, 0, 0, f.a(paramContext, 10.0F));
        this.i.setLayoutParams(localLayoutParams);
        this.i.setOrientation(0);
        ImageView localImageView = new ImageView(paramContext);
        int j = f.a(paramContext, 15.0F);
        LinearLayout.LayoutParams localLayoutParams1 = new LinearLayout.LayoutParams(j, j);
        localLayoutParams1.weight = 0.0F;
        localLayoutParams1.rightMargin = f.a(paramContext, 3.0F);
        localLayoutParams1.topMargin = f.a(paramContext, 3.0F);
        localImageView.setLayoutParams(localLayoutParams1);
        localImageView.setScaleType(ImageView.ScaleType.FIT_XY);
        this.a.a(localImageView, 1073741875);
        this.i.addView(localImageView);
        TextView localTextView = new TextView(paramContext);
        LinearLayout.LayoutParams localLayoutParams2 = new LinearLayout.LayoutParams(-1, -2);
        localLayoutParams2.weight = 1.0F;
        localTextView.setLayoutParams(localLayoutParams2);
        localTextView.setPadding(0, f.a(paramContext, 5.0F), 0, f.a(paramContext, 5.0F));
        localTextView.setSingleLine(false);
        localTextView.setText(d.a(d.a.at));
        localTextView.setLineSpacing(f.a(this.b, 3.0F), 1.0F);
        localTextView.setTextSize(1, c.i);
        localTextView.setTextColor(Color.parseColor("#999999"));
        this.i.addView(localTextView);
        return this.i;
    }

    protected LinearLayout f(Context paramContext) {
        LinearLayout.LayoutParams localLayoutParams = new LinearLayout.LayoutParams(-1, f.a(this.b, 47.0F), 1.0F);
        localLayoutParams.rightMargin = f.a(this.b, 15.0F);
        this.j = new LinearLayout(paramContext);
        this.j.setLayoutParams(localLayoutParams);
        this.j.setGravity(17);
        this.j.setPadding(f.a(this.b, 20.0F), 0, f.a(this.b, 20.0F), 0);
        this.a.a(this.j, -1073741824, -1073741823, -1073741823);
        TextView localTextView = new TextView(paramContext);
        localTextView.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
        localTextView.setGravity(17);
        localTextView.setTextSize(1, c.l);
        localTextView.setText(d.a(d.a.bo));
        localTextView.setTextColor(Color.parseColor("#9d892c"));
        this.j.addView(localTextView);
        this.j.setOnClickListener(this.p);
        return this.j;
    }
}